<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>]sasad</h1>
    <script>
        class Person{
            constructor(name,age,sex){
                this.name = name;
                this.age = age;
                this.sex = sex;
            }
            jump(){
                console.log("别打我");
            }
            static run(){
                console.log('呜呜呜');
            }
            static color = 'yesda'
        }
        let tom = new Person('tom',12,'男');
        console.log(tom);

        class Students extends Person{
            constructor(name,age,sex,hobby){
                super(name,age,sex);
                this.hobby = hobby
            }
            jump(){
                super.jump();
            }
            static run(){
                super.run();
            }
        }
        let leiyu = new Students('leiyu',18,"男","黝黑黝黑");
        console.log(leiyu);

        leiyu.jump();

        Students.run();

    </script>
</body>
</html>